home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
art&graf.ix
/
art-3139
/
boot_pic.mug
/
boot_neo.s
< prev
next >
Wrap
Text File
|
1987-04-21
|
2KB
|
91 lines
;
; NeoChrome Picture Booter v2.0
; -----------------------------
;
; Coded by: MUG U.K/Mike Mee !!
;
; v1.0 - Used in Super Virus Killer v1.0
; v2.0 - Used in PVK v2.1
;
; NEOCHROME pictures:- 0 - 3 = resolution
; 4 - 35 = palette data
; 36 - 123 = other data
; 124 - 127 = 'NEO!' header
; 129 - 32128 = picture data
pic_adr equ $20000
yes equ 1
no equ 0
text_on equ yes ; no = saves 12 bytes + length of text
opt p+,o+,d-,s-
bra.s start
dc.b "Coded by: MUG U.K",191," - 15/10/1991",0
start
ifne text_on
pea text(pc)
move.w #9,-(a7)
trap #1
addq.w #6,a7
endc
lea filename(pc),a0 ; file to load
move.l #pic_adr-128,d6 ; destination address
move.l #32128,d7 ; length = 32128
loadit lea handle(pc),a6
clr.w -(a7) ; mode = 0 (open to read)
move.l a0,-(a7) ; filename to open
move.w #$3d,-(a7) ; f_open
trap #1 ; do it !!
addq.l #8,a7 ; tidy stack
move.w d0,(a6) ; store file handle returned
move.l d6,-(a7) ; address to load to
move.l d7,-(a7) ; amount to read in
move.w d0,-(a7) ; file handle
move.w #$3f,-(a7) ; f_read
trap #1 ; do it
adda.l #$c,a7 ; tidy stack
move.w (a6),-(a7) ; file handle
move.w #$3e,-(a7) ; f_close
trap #1 ; do it !!
addq.l #4,a7 ; tidy stack
lea pic_adr-124,a0 ; set up picture palette
lea $ffff8240.W,a1 ; hardware palette
movem.l (a0),d0-d7 ; move from one
movem.l d0-d7,(a1) ; to the other
move.l $44e.w,a0 ; current screen address
lea pic_adr,a1 ; source
move.w #$1F3F,d0 ; (32000/4)-1 = $1F3F (7999)
bmove move.l (a1)+,(a0)+ ; move it
dbf d0,bmove ; loop
exit rts ; bye bye
filename dc.b '\test.neo',0
ifne text_on
text dc.b $1B,'E'
dc.b 'Picture Loading !!',0
endc
handle ds.w 1
;
; Alter length of 'blanks' to ensure length of bootsector is equal
; to 480 bytes !!
;
ifne text_on
blanks ds.w 149 ; amount when text function is on
elseif
blanks ds.w 166 ; and when it's off
endc